package com.zxt.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by XiaoQiAng on 2015/11/6.
 */
public class MysqlProperties {
    public static Properties getMysqlProperties() {
        Properties properties = new Properties();
        InputStream inputStream = null;
        try {
            inputStream = MysqlProperties.class.getResourceAsStream("/Application/mysql.properties");
            properties.load(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if(inputStream != null) {
                try {
                    inputStream.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        return properties;

    }
}
